# coding: utf-8
from sqlalchemy import CHAR, Column, JSON, String, TIMESTAMP, Table, Text, text, MetaData
from sqlalchemy.dialects.mysql import ENUM, INTEGER, LONGTEXT, MEDIUMINT, MEDIUMTEXT, TEXT, TINYINT, VARCHAR
from ..database import db,serialize


class Attr(db.Model):
    __tablename__ = 'attrs'

    id = Column(INTEGER(11), primary_key=True)
    filename = Column(String(100, 'utf8mb4_unicode_ci'), nullable=False)
    url = Column(String(200, 'utf8mb4_unicode_ci'), nullable=False)
    created_at = Column(TIMESTAMP)
    updated_at = Column(TIMESTAMP)